<template>
    <el-config-provider :size="config.config.size" :locale="lang">
        <router-view></router-view>
    </el-config-provider>
</template>

<script setup lang="ts">
const config = useConfigStore()
const { getLocaleMessage } = useI18n()
const { initTheme } = useTheme()
// 加载主题配置
onMounted(() => {
    initTheme()
})

// 获得本地语言包
const lang = getLocaleMessage(config.lang.defaultLang) as any
</script>

<style lang="scss" scoped></style>
